﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<B10.Models.RegisterModel>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    <%=Strings.Register %>
</asp:Content>
<asp:Content ContentPlaceHolderID="HeaderContent" runat="server">
    <% if (false)
       {
    %>
    <link href="/content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/cupertino/jquery-ui-1.8rc1.custom.css" rel="stylesheet"
        type="text/css" />
    <%} %>

    <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>

    <script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="ui-corner-all ui-helper-clearfix alternate-header" id="tabs">
        <div class="ui-widget-header-title">
            Rejestracja nowego użytkownika
        </div>
    </div>
    <div class="content-wrapper center ui-widget-content ui-corner-all">
        <%Html.EnableClientValidation(); %>
        <%= Html.ValidationSummary(true) %>
        <% using (Html.BeginForm())
           { %>
        <div>
            <table width="100%">
                <tr>
                    <td class="editor-label">
                        <%= Html.LabelFor(m => m.UserName) %>
                    </td>
                    <td class="editor-field">
                        <%= Html.TextBoxFor(m => m.UserName) %>
                        <%= Html.ValidationMessageFor(m => m.UserName) %>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <%= Html.LabelFor(m => m.Email) %>
                    </td>
                    <td class="editor-field">
                        <%= Html.TextBoxFor(m => m.Email) %>
                        <%= Html.ValidationMessageFor(m => m.Email) %>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <%= Html.LabelFor(m => m.Password) %>
                    </td>
                    <td class="editor-field">
                        <%= Html.PasswordFor(m => m.Password) %>
                        <%= Html.ValidationMessageFor(m => m.Password) %>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <%= Html.LabelFor(m => m.ConfirmPassword) %>
                    </td>
                    <td class="editor-field">
                        <%= Html.PasswordFor(m => m.ConfirmPassword) %>
                        <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <%=Strings.EnterCaptcha %>
                    </td>
                    <td class="editor-field">
                        <label for="captcha">
                            <%= Html.CaptchaImage(50, 180) %></label><br />
                        <%= Html.CaptchaTextBox("captcha") %>
                        <%=Html.ValidationMessage("captcha")%>
                        <%-- <%=Html.GenerateCaptcha() %>
                        <%=Html.ValidationMessage("ReCaptcha") %>--%>
                    </td>
                </tr>
            </table>
        </div>
        <div class="right submit-button-holder">
            <button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
                type="submit" value="<%=Strings.Register %>">
                <span class="ui-button-text">
                    <%=Strings.Register%></span>
            </button>
        </div>
        <div class="clear">
        </div>
        <% } %>
    </div>
</asp:Content>
